package br.com.tcc.systemdx.domain;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;

@Entity
@DiscriminatorValue(AtributoGenerico.Tipo.SINTOMA)
public class AtributoSintoma extends AtributoGenerico {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1274350734611133485L;
	
	@ManyToMany(
			mappedBy="atributos", fetch = FetchType.LAZY
			)
	private List<ValorSintoma> valores;
	
	@Override
	public String getTipo() {
		return AtributoGenerico.Tipo.SINTOMA;
	}
	
	public List<ValorSintoma> getValores() {
		return valores;
	}
	
	public void setValores(List<ValorSintoma> valores) {
		this.valores = valores;
	}

}
